package com.cgq.service;

import com.cgq.pojo.Stock;

import java.util.List;

/**
 * *  Author:陈国强
 * *  Description:
 * *  Date:2023/2/15 14:35
 */
public interface StockService {

    String deduct(String product_code);

    String deduct1(String product_code,Integer count);


    //演示悲观锁问题
    List<Stock> queryStock(String productCode);

    //演示乐观锁问题
    List<Stock> queryStock1(String productCode);
}
